package cn.xuqiudong.rpc.protocol.netty.model;

import io.netty.util.concurrent.Promise;

/**
 * 描述: 异步变同步
 * @author Vic.xu
 * @date 2022-02-22 13:09
 */
public class XqdFuture<T> {
    private Promise<T> promise;

    public XqdFuture(Promise<T> promise) {
        this.promise = promise;
    }

    public Promise<T> getPromise() {
        return promise;
    }

    public void setPromise(Promise<T> promise) {
        this.promise = promise;
    }
}
